import request from '@/utils/request'

// 查询需求信息列表
export function listNEED(query) {
  return request({
    url: '/achievement/web/NEED/list',
    method: 'get',
    data: query
  })
}

// 查询需求信息详细
export function getNEED(id) {
  return request({
    url: '/achievement/web/NEED/' + id,
    method: 'get'
  })
}

// 新增需求信息
export function addNEED(data) {
  return request({
    url: '/achievement/web/NEED',
    method: 'post',
    data: data
  })
}

// 修改需求信息
export function updateNEED(data) {
  return request({
    url: '/achievement/web/NEED',
    method: 'put',
    data: data
  })
}

// 删除需求信息
export function delNEED(id) {
  return request({
    url: '/achievement/web/NEED/' + id,
    method: 'delete'
  })
}
//提交需求管理
export function SubmitNEED(id) {
  return request({
    url: '/achievement/NEED/submit/' + id,
    method: 'put'
  })
}


//需求管理列表-成果
export function CGNEED(data) {
  return request({
    url: '/achievement/web/CGNEED/list',
    method: 'get',
	data: data
  })
}

//需求管理列表-仪器
export function YQNEED(data) {
  return request({
    url: '/achievement/web/YQNEED/list',
    method: 'get',
	data: data
  })
}


//需求管理列表-金融
export function JRNEED(data) {
  return request({
    url: '/achievement/web/JRNEED/list',
    method: 'get',
	data: data
  })
}

//需求管理列表-人才
export function RCNEED(data) {
  return request({
    url: '/person/web/RECRUIT/list',
    method: 'get',
	data: data
  })
}

// 发布人才招聘需求
export function tanlentWanted(data) {
  return request({
    url: '/person/web/RECRUIT',
    method: 'POST',
	data:data
  })
}

// 发布人才求职需求
export function jobWanted(data) {
  return request({
    url: '/person/web/WANTED',
    method: 'POST',
	data:data
  })
}
